package com.erp.shop.domain.dto;

import com.ruoyi.gather.api.domain.dto.SkuInventory;
import lombok.Data;

import java.util.List;

@Data
public class ProductAddActivityDto {
    private String storeId;
    //已存在的粉丝折扣 默认为0
    private String exist_store_fans_discount;
    //活动id
    private Long promotion_id;
    //粉丝折扣,与exist_store_fans_discount不同值时，才会更新粉丝折扣
    private String store_club_discount_rate;
    //活动商品对象列表
    private List<ProductObjects> product_objects;

    @Data
    public static class ProductObjects {
        //每人限购数量(每人最多购买数量)
        private Integer buy_max_num;
        //商品id
        private Long product_id;
        //活动商品优惠信息
        private List<ProductDiscountList> product_discount_list;
        //商品sku信息
        private List<SkuInventory> sku_inventory_list;
    }

    @Data
    public static class ProductDiscountList {
        //折扣
        private Integer discount;
        //终端 MOBILE or ALL
        private String terminal;
    }


}
